package com.gimi.cloud.jimi.common.enums.common;

/**
 * Created by shazhiwei on 2017/11/15.
 */
public enum  RedisKeyEnum {
    JIMI_CONFIG_PRE("jimi:sysConfig:","配置文件redisKey前缀"),//sysConfig表中的所有数据请使用此前缀加cfKey作为redisKey,否则不能使用ttl:-1
    JIMI_API_CONFIG_PRE("jimi:sysApiConfig","sys_api_config配置文件redisKey前缀"),//sysConfig表中的所有数据请使用此前缀加cfKey作为redisKey,否则不能使用ttl:-1
    JIMI_MASTER_PRE("jimi:sys:master:","后台管理用户redisKey前缀"),
    JIMI_MASTER_PERMISSION_PRE("jimi:sys:master:permission:","后台管理用户登录权限信息，RedisKey前缀"),
    JIMI_MASTER_TOKEN_PRE("jimi:sys:master:token:","后台管理用户登录token信息，RedisKey前缀"),
    JIMI_APP_PRE("jimi:app:","app端redisKey前缀"),
    JIMI_APP_HOMEPAGE_PRE("imi:app:homePage","app首页前缀"),
    APP_HOME_PAGE_MAJOR_AD_LIST("jimi:app:homePage:majorAdList:","app首页主广告前缀"),
    APP_HOME_PAGE_COLUMN_AD_LIST("jimi:app:homePage:columnList:","app首页redisKey前缀"),
    APP_HOME_PAGE_COLUMN_PRODUCT_LIST("jimi:app:homePage:columnProductList:","app首页租机盛典redisKey前缀"),
    INTERFACE_PLATFORM_TOKEN("jimi:sys:platformtoken:","存放接口平台的token"),
    CITY_LIST_PRE("jimi:sys:citylist:","第三方接口支持的城市列表"),
    APP_JWT_TOKEN_SECRET("jimi:sysConfig:app_jwt_token_secret:","app token密钥"),
    APP_LOGIN_FAIL_TOTAL_TIMES("jimi:app:login_fail_total_times:","登录错误次数"),
    APP_LOGIN_FAIL_LAST_TIME_PRE("jimi:app:login_fail_last_time:","最后登录错误时间");

    /**
     * 键
     */
    private String key;

    /**
     * 描述
     */
    private String desc;

    private RedisKeyEnum(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public String getKey() {
        return key;
    }

    public String getDesc() {
        return desc;
    }
}
